<div class='tour_left'>
	<div class='title_1 cufon' style='width:595px;'>
        Tin tức - Sự kiện
    </div>
	<div class='wrap_tour_content'>
		<div class='tour_list'>
        <?
			$page		=	$page + 0;
			$perpage	=	10;
			$sum		=	sizeof(News::getAllNews());
			$pages		=	($sum-($sum%$perpage))/$perpage;
			if ($sum % $perpage <> 0 )	$pages = $pages+1;
			$page		=	($page==0)?1:(($page>$pages)?$pages:$page);
			$min 		= 	abs($page-1) * $perpage;
			$max 		= 	$perpage;

			$news_arr = News::getAllNews(1,"created_at DESC","$min, $max");

			$cnt = 0;
			$picture = new Picture();
			foreach ($news_arr as $news)
			{
				$cnt ++;
				$picture->select($news->getthm_picture());
		?>
			<div class='tour_item'>
				<div class='tour_img'>
					<a href='/tin-tuc-chi-tiet/<?=$news->getid()?>/<?=lg_string::get_link($news->getname())?>'><img src='<?=$picture->getPath("tour_price_")?>' /></a>
				</div>
				<div class='tour_desc' style='width:429px;'>
					<div class='tour_title' style='padding-bottom:0px;padding-top:3px;'>
                    	<a href='/tin-tuc-chi-tiet/<?=$news->getid()?>/<?=lg_string::get_link($news->getname())?>'><?=$news->getname()?></a> 
                    </div>
					<div class='tour_content'>
                    	<div>
							<?=lg_string::crop($news->getdescription(),50)?>
                        </div>
					</div>
				</div>
				<div style='clear:both'></div>
			</div>
		<?
			}
			
			//showPageNavigation($page, $pages, '/tin-tuc/');
				
			if ($cnt == 0)
			{
				echo "Dữ liệu đang được cập nhật. Xin vui lòng vào lại sau.";
			}
		?>
        </div>
    </div>
</div>

<div class='tour_right'>
<?
include('z_includes/news_right.php');
?>
</div>
<div style='clear:both'></div>